package com.gsoe.judge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gsoe.base.model.MqMessage;
import com.gsoe.dto.SaveCacheDTO;
import com.gsoe.po.ExamCache;

import java.util.Map;

/**
 * <p>
 * 考试答题缓存 服务类
 * </p>
 *
 * @author xiaoma
 * @since 2024-11-04
 */
public interface ExamCacheService extends IService<ExamCache> {

    void delByTextId(Long examId);

    Map<Long, String> getExamCache(Long examId,Long userId);

    boolean saveInput(SaveCacheDTO saveCacheDTO);

    Map<Long, Map<Long, String>> getExamCacheByUserList(MqMessage mqMessage);
}
